package com.zzy.app.config.prop;

import com.zzy.app.entity.prop.PropPerson;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@PropertySource(value = {"classpath:/person.properties"})
@Configuration
public class MainConfigProps {
    /**
     *propPerson中通过@Value注入属性
     */
    @Bean
    public PropPerson propPerson() {
        return new PropPerson();
    }
}
